package com.jianzh5.entity;

import javax.persistence.*;
import java.util.Date;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * TFuser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_fuser", catalog = "")
public class TFuser implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	// Fields
	private Integer id;
	private String nickname;
	private String email;
	private String password;
	private String validatecode;
	private String mobile;
	private Integer status;
	private Date acttime;
	private Date addtime;

	// Constructors

	/** default constructor */
	public TFuser() {
	}

	/** full constructor */
	public TFuser(String nickname, String email, String password,
			Integer status, Date acttime) {
		this.nickname = nickname;
		this.email = email;
		this.password = password;
		this.status = status;
		this.acttime = acttime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "nickname", length = 50)
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	@Column(name = "email", length = 50)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "password", length = 50)
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	@Column(name = "validatecode", length = 50)
	public String getValidatecode() {
		return validatecode;
	}

	public void setValidatecode(String validatecode) {
		this.validatecode = validatecode;
	}
	
	@Column(name = "mobile", length = 11)
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "acttime", length = 19)
	public Date getActtime() {
		return this.acttime;
	}

	public void setActtime(Date acttime) {
		this.acttime = acttime;
	}
	
	@Column(name = "addtime", length = 19)
	public Date getAddtime() {
		return addtime;
	}

	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}
}